@extends('layouts.admin')
@section('title') @parent 问律师帖子详情 @stop
@section('page_title')@parent
问律师帖子详情
@show
@section('breadcrumb')@parent
{{ Breadcrumbs::render('post-index')  }}
@show
@section('content')
<div class="box">
		<div class="box-header">
			<h3 class="box-title">问律师帖子详情</h3>
		</div>
		<div class="box-body table-responsive">	
				@include('widgets.notification')
				<div class="pad">
					
				</div>
				
				<table class="table table-bordered table-hover dataTable">
					
					<tr>
						<th>标题</th>
						<td>{{ $post->title }}</td>
					</tr>
					<tr>
						<th>发帖人</th>
						<td>{{ $post->creatorName() }}</td>
					</tr>
					<tr>
						<th>发帖时间</th>
						<td>{{ $post->create_at }}</td>
					</tr>
					<tr>
						<th>帖子内容</th>
						<td>{{ $post->content }}</td>
					</tr>
					<tr>
						<th>回复</th>
						<td>
							<table>
								<thead>
									<th>回帖人</th>
									<th>内容</th>
									<th>回复时间</th>
									<th>操作</th>
								</thead>
								<tbody>
								@foreach ($comments as $r )
								<tr>
									<td>{{ $r->creatorName() }}</td>
									<td>{{ $r->content }}</td>
									<td>{{ $r->updated_at }}</td>
									<td><a href="{{ route('admin.post.comment.remove',[ $post->id, $r->id] ) }}" onclick="return confirm('确定要删除该回复么？'')" class="btn-del">&nbsp;&nbsp;<span class="glyphicon glyphicon-remove danger"></span></a></td>
								</tr>
								@endforeach
								</tbody>
							</table>
						</td>
					</tr>
				</table>
		</div>
		
</div>
@stop
@section('end') @parent
@stop